package com.lay.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 保险订单
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
public class InsurContract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号，主键，唯一
     */
    @TableId(value = "ic_id", type = IdType.AUTO)
    private Integer icId;

    /**
     * 车辆编号，外键
     */
    private String cId;



    @TableField(exist = false)
    private  Cars cars;



    @TableField(exist = false)
    private  CarInsur carInsur;

    /**
     * 套餐标识（0表示自选，套餐id表示对应套餐）
     */
    private Integer ipId;

    /**
     * 保险编号，外键
     */
    private Integer ciId;

    /**
     * 添加人员
     */
    private Integer unId;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date icAddtime;

    /**
     * 有效日期
     */
    private Date icTotime;

    /**
     * 订单状态你（0待审核，1生效，2不合格，3退保，4续保）
     */
    private Integer icState;

    /**
     * 审核人编号
     */
    private Integer unShenid;

    /**
     * 是否缴费（0否，1是）
     */
    private Integer icIspayment;

    /**
     * 应缴金额
     */
    private BigDecimal icMoney;

    /**
     * 最大保额
     */
    private BigDecimal maxMoney;

    /**
     * 详细信息表(存储的是用户报案信息表的文件名：以车牌号命名）
     */
    private String msgTable;


    public Integer getIcId() {
        return icId;
    }

    public void setIcId(Integer icId) {
        this.icId = icId;
    }

    public String getcId() {
        return cId;
    }

    public void setcId(String cId) {
        this.cId = cId;
    }

    public Integer getIpId() {
        return ipId;
    }

    public void setIpId(Integer ipId) {
        this.ipId = ipId;
    }

    public Integer getCiId() {
        return ciId;
    }

    public void setCiId(Integer ciId) {
        this.ciId = ciId;
    }

    public Integer getUnId() {
        return unId;
    }

    public void setUnId(Integer unId) {
        this.unId = unId;
    }

    public Date getIcAddtime() {
        return icAddtime;
    }

    public void setIcAddtime(Date icAddtime) {
        this.icAddtime = icAddtime;
    }

    public Date getIcTotime() {
        return icTotime;
    }

    public void setIcTotime(Date icTotime) {
        this.icTotime = icTotime;
    }

    public Integer getIcState() {
        return icState;
    }

    public void setIcState(Integer icState) {
        this.icState = icState;
    }

    public Integer getUnShenid() {
        return unShenid;
    }

    public void setUnShenid(Integer unShenid) {
        this.unShenid = unShenid;
    }

    public Integer getIcIspayment() {
        return icIspayment;
    }

    public void setIcIspayment(Integer icIspayment) {
        this.icIspayment = icIspayment;
    }

    public BigDecimal getIcMoney() {
        return icMoney;
    }

    public void setIcMoney(BigDecimal icMoney) {
        this.icMoney = icMoney;
    }

    public BigDecimal getMaxMoney() {
        return maxMoney;
    }

    public void setMaxMoney(BigDecimal maxMoney) {
        this.maxMoney = maxMoney;
    }

    public String getMsgTable() {
        return msgTable;
    }

    public void setMsgTable(String msgTable) {
        this.msgTable = msgTable;
    }
    public Cars getCars() {
        return cars;
    }

    public void setCars(Cars cars) {
        this.cars = cars;
    }
    public CarInsur getCarInsur() {
        return carInsur;
    }

    public void setCarInsur(CarInsur carInsur) {
        this.carInsur = carInsur;
    }

    @Override
    public String toString() {
        return "InsurContract{" +
        "icId=" + icId +
        ", cId=" + cId +
        ", ipId=" + ipId +
        ", ciId=" + ciId +
        ", unId=" + unId +
        ", icAddtime=" + icAddtime +
        ", icTotime=" + icTotime +
        ", icState=" + icState +
        ", unShenid=" + unShenid +
        ", icIspayment=" + icIspayment +
        ", icMoney=" + icMoney +
        ", maxMoney=" + maxMoney +
        ", msgTable=" + msgTable +
        "}";
    }
}
